var express = require('express');

var router = express.Router();
//引入db.js
var client = require("../db/db");



/* GET home page. */
router.get('/', function(req, res, next) {
 
  //调用连接数据库的方法
  client.connect(function(){
   var db = client.getDB();
   
   console.log(db)
  });
  
 
});

module.exports = router;
